package com.onion.mvc.enums;

public enum ParamPolicy {

    BODY_ONLY(1, "仅使用request_body"),
    PARAM_ONLY(2, "仅使用request_param"),
    BODY_PRIOR(11, "request_body参数优先request_param"),
    PARAM_PRIOR(12, "request_param参数优先request_body");

    private int policy;
    private String text;

    private ParamPolicy(int policy, String text){
        this.policy = policy;
        this.text = text;
    }

    public int getPolicy() {
        return policy;
    }

    public String getText() {
        return text;
    }

}